package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StoreCookingMethodsMapper;
import com.ruoyi.system.domain.StoreCookingMethods;
import com.ruoyi.system.service.IStoreCookingMethodsService;

/**
 * 门店做法 Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-26
 */
@Service
public class StoreCookingMethodsServiceImpl implements IStoreCookingMethodsService
{
    @Autowired
    private StoreCookingMethodsMapper storeCookingMethodsMapper;

    /**
     * 通过id查询门店做法
     *
     * @param id 门店做法
     * @return 门店做法
     */
    @Override
    public StoreCookingMethods selectStoreCookingMethodsById(Long id)
    {
        return storeCookingMethodsMapper.selectStoreCookingMethodsById(id);
    }

    /**
     * 查询门店做法列表
     *
     * @param storeCookingMethods 门店做法
     * @return 门店做法
     */
    @Override
    public List<StoreCookingMethods> selectStoreCookingMethodsList(StoreCookingMethods storeCookingMethods)
    {
        return storeCookingMethodsMapper.selectStoreCookingMethodsList(storeCookingMethods);
    }

    /**
     * 新增门店做法
     *
     * @param storeCookingMethods 门店做法
     * @return 结果
     */
    @Override
    public int insertStoreCookingMethods(StoreCookingMethods storeCookingMethods)
    {
        return storeCookingMethodsMapper.insertStoreCookingMethods(storeCookingMethods);
    }

    /**
     * 修改门店做法
     *
     * @param storeCookingMethods 门店做法
     * @return 结果
     */
    @Override
    public int updateStoreCookingMethods(StoreCookingMethods storeCookingMethods)
    {
        return storeCookingMethodsMapper.updateStoreCookingMethods(storeCookingMethods);
    }

    /**
     * 通过id批量删除门店做法信息
     *
     * @param ids 需要删除的门店做法主键
     * @return 结果
     */
    @Override
    public int deleteStoreCookingMethodsByIds(Long[] ids)
    {
        return storeCookingMethodsMapper.deleteStoreCookingMethodsByIds(ids);
    }

    /**
     * 通过id删除门店做法信息
     *
     * @param id 门店做法主键
     * @return 结果
     */
    @Override
    public int deleteStoreCookingMethodsById(Long id)
    {
        return storeCookingMethodsMapper.deleteStoreCookingMethodsById(id);
    }
}
